#ifndef _SHADOW_MYSQL_AUTO_PTR_H_
#define _SHADOW_MYSQL_AUTO_PTR_H_

#include <log4cxx/logger.h>
#include <log4cxx/xml/domconfigurator.h>

#include "MysqlConnPool.h"

class MysqlConnAutoPtr {
		public:
				MysqlConnAutoPtr(MysqlConnPool * pool);
				MYSQL_CONN * acquire();
				int release();
				virtual ~MysqlConnAutoPtr();
		private:
				MysqlConnPool * _pool;
				MYSQL_CONN * _mysql_conn;
				log4cxx::LoggerPtr _logger;
};

#endif
